
using Youz.Common.Helper;
using Youz.Common.DAL;
using Youz.Common.Entity;
using System;
using System.Data;
using System.Data.SqlClient;

namespace Youz.Common.BLL
{
    /// <summary>
    /// Log_OperationLog BLL Class
    /// </summary>
    public partial class Log_OperationLogBLL : BaseBLL
    {
		Log_OperationLogDAL dal;
		
        public Log_OperationLogBLL()
        {
			dal = new Log_OperationLogDAL();
		}

        #region  成员方法
        /// <summary>
        ///  新增一条数据
        /// </summary>
        public bool Add(Log_OperationLog model)
        {
            return dal.Add(model);
        }

        /// <summary>
        ///  保存一条数据
        /// </summary>
        public bool Update(Log_OperationLog model)
        {
            return dal.Update(model);
        }

        /// <summary>
        /// 删除一条数据
        ///</summary>
        public bool Delete(Guid OperationID)
        {
            return dal.Delete(OperationID);
        }

        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        public Log_OperationLog Get(Guid OperationID)
        {
            return dal.Get(OperationID);
        }
		
		/// <summary>
        /// 得到一个JSON对象
        /// </summary>
        public string GetJson(Guid OperationID)
        {
            return Utility.GetJsonByObject(Get(OperationID));
        }

        /// <summary>
        /// 获得数据列表
        /// </summary>
        public DataSet Gets(string sqlWhere)
        {
            return dal.Gets(sqlWhere);
        }
		
		/// <summary>
        /// 获得前几行数据
        /// </summary>
        public DataSet Gets(int top, string sqlWhere, string filedOrder)
        {
            return dal.Gets(top, sqlWhere, filedOrder);
        }
		
		/// <summary>
        /// 获取记录总数
        /// </summary>
        public int GetRecordCount(string sqlWhere)
        {
            return dal.GetRecordCount(sqlWhere);
        }
		
		/// <summary>
        /// 获得数据列表分页
        /// </summary>
        public DataTable Gets(string sqlWhere, int pageindex, int pagesize, out int total, params SqlParameter[] cmdParms)
        {
            return dal.Gets(sqlWhere, pageindex, pagesize, out total, cmdParms);
        }

        /// <summary>
        /// 敏感操作记录
        /// </summary>
        /// <param name="sqlWhere"></param>
        /// <param name="pageindex"></param>
        /// <param name="pagesize"></param>
        /// <param name="total"></param>
        /// <param name="cmdParms"></param>
        /// <returns></returns>
        public DataTable GetsSensitive(string sqlWhere, int pageindex, int pagesize, out int total, params SqlParameter[] cmdParms)
        {
            return dal.GetsSensitive(sqlWhere, pageindex, pagesize, out total, cmdParms);
        }
        
        #endregion  成员方法
    }
}


  